<?php include $this->tpl('public:common.php') ?>
<div class="btn-toolbar">
	<a href="/os/quicknote/add"  class="btn btn-primary"><i class="icon-plus"></i> Quick Note</a>
</div>
<div class="block">
	<a href="#page-stats" class="block-heading" data-toggle="collapse">Quick Note列表</a>
	<div id="page-stats" class="block-body collapse in">
		<table class="table table-striped">
			<thead>
			<tr>
				<th>#</th>
				<th>所有者</th>
				<th>内容</th>
				<th width="80px">操作</th>
			</tr>
			</thead>
			<tbody>							  
			<?php foreach($quicknotes as $note):?>
				<tr>
				<td><?=$note['note_id']?></td>
				<td><?=$note['owner_name']?></td>
				<td><?=$note['note_content']?></td>
				<td>
				<?php if ($user_group ==1 || $note['owner_id'] == $current_user_id): ?>
				<a href="/os/quicknote/update?note_id=<?=$note['note_id']?>" title= "修改" ><i class="icon-pencil"></i></a>
				&nbsp;
				<a data-toggle="modal" href="#myModal"  title= "删除" ><i class="icon-remove" href="/os/quicknotes/delete?note_id=<?=$note['note_id']?>#myModal" data-toggle="modal" ></i></a>
				<?php endif?>
				</td>
				</tr>
			<?php endforeach?>
		  </tbody>
		</table>
			<!--- START 分页模板 --->
				
               <?=$page_html?>
					
			 <!--- END --->
	</div>
</div>

	
<?php include $this->tpl('public:footer.php') ?>